Generating processing sequences for image-based decision systems

ABSTRACT

A multilevel Chain-And-Tree (CAT) model provides a framework to facilitate highly effective image analysis and measurement. Methods are described to automatically or semi-automatically create a processing sequence for image based decision applications using the CAT model framework. The invention supports new image based decision applications with little or no involvement of image processing experts. A new representation for processing sequence is consistent with CAT data representation, which allows easy understanding, updating, and debugging.

TECHNICAL FIELD

[0001] This invention relates to a method for automatically or semi-automatically generating processing sequences in image-based decision systems.

BACKGROUND OF THE INVENTION

[0002] An image-based decision system processes and extracts information from an image or multiple images to make decisions such as the presence of objects of interest, disease, defects, or the acceptance of measurement parameters such as dimensions, intensity, structures, etc. Image-based decision systems have broad applications such as machine vision, non-contact gauging, inspection, robot guidance, medical imaging, biometrics, etc.

[0003] Many image-based decision functions involve the detection of defects or gauging of dimensions from man-made manufacturing components, parts or systems. Simple filtering, thresholding, template matching, golden template comparison and caliper based edge detection are the primary prior art approaches for performing simple machine vision inspection and measurement tasks (Silver, B, “Geometric Pattern Matching for General-Purpose Inspection in Industrial Machine Vision”, Intelligent Vision '99 Conference—Jun. 28-29, 1999).

[0004] There is often a teaching phase and an application phase for an image-based decision system. In the prior art approach, template region(s) or golden template(s) are selected by human and stored in the system in the teaching phase. In addition, edge detection calipers are specified at image regions of interest for edge detection through multiple one-dimensional projection and simple differentiation filters. In the application phase, template searches are applied to locate the template region(s) in the input image. The located template locations are used to establish a reference coordinate system and/or for deriving points and structures for measurements. Edges are detected from each caliper region and/or Golden template is subtracted from the normalized input image for defect detection or dimensional measurements (Hanks, J, “Basic Functions Ease Entry Into Machine Vision”, Test & Measurement World, Mar. 1, 2000

[0005] http://www.e-insite.net/tmworld/index.asp?layout=article&articleid=CA187377&pubdate=3/1/2000 Titus, J, “Software makes machine vision easier”, Test & Measurement World, Oct. 15, 2001

[0006] http://www.e-insite.net/tmworld/index.asp?layout=article&articleid=CA177596&pubdate=10/15/2001)

[0007] Increasing quality and precision requirement in advanced manufacturing demands that quality control procedures be implemented at every stage of the manufacturing process. This requires advanced inspection applications to be deployed in the factory floor by users who have little or no knowledge of image processing/pattern recognition/machine vision technology. Simple prior art algorithms cannot properly address these requirements. There are growing demands of solution products for image-based decisions. A solution product requires little technical knowledge of its users to fully utilize its capabilities. It should allow users to use their application domain knowledge (not detailed image processing and pattern recognition technical knowledge) to optimize the results. Therefore, a solution product should take inputs that link to application knowledge and automatically or semi-automatically translate them into detailed technical processing procedure and parameters without user interaction.

[0008] For simple applications, the prior art teaching process requires human selection of template region(s) and the selection and specification of edge calipers and thresholds for measurements. For advanced applications, non-standard processing algorithms are often required using a collection of basic image processing functions. This is mostly performed by experienced image processing and pattern recognition personnel in an ad-hoc fashion. The teaching process is time-consuming and involves mostly artistic trial-and-error rather than a systematic engineering approach. The effectivity of the resulting inspection process is highly dependent on the experience level of the person who sets up the process. This is inconsistent and expensive. Furthermore, the resulting processing sequences and the effects and side-effects of individual operations may not be easily comprehendible. Many operations may be closely linked. Change of one operation may require associated changes of other operations to achieve the effect of change. This requires advanced expert knowledge. The processing sequence may not correlate well to the application requirement or data representation. Therefore, they are difficult to update, change, or debug.

OBJECTS AND ADVANTAGES

[0009] An objective of the invention is to create processing sequences for new image based decision applications that are consistent and effective. Another objective of the invention is to support new image based decision applications with little or no involvement of image processing experts. A further objective of the invention is to reduce the time and cost for deploying an image based decision system for a new application. Another objective is to provide a new representation for processing sequence that is consistent with data representation and that allows easy understanding, updating and debugging.

SUMMARY OF THE INVENTION

[0010] Working from a reference CAT model and at least one learning image, a processing CAT model is automatically or semi-automatically created. When a processing CAT model processes an input image, it creates a result that is structured similarly to the reference CAT model input, allowing easy comparison and evaluation of results. Processing CAT models are created based upon algorithms contained in a database and the component information contained within the reference CAT model.

BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The preferred embodiments and other aspects of the invention will become apparent from the following detailed description of the invention when read in conjunction with the accompanying drawings which are provided for the purpose of describing embodiments of the invention and not for limiting same, in which:

[0012]FIG. 1 shows an application scenario of the cat based ID system;

[0013]FIG. 2 shows a CAT model illustration;

[0014]FIG. 3 shows a processing cat model learning and application flow;

[0015]FIG. 4 shows the ROI determination learning processing flow;

[0016]FIG. 5 shows object detection learning processing flow;

[0017]FIG. 6 shows a candidate algorithm generation module processing flow;

[0018]FIG. 7 shows a candidate algorithm evaluation module processing flow;

[0019] Table 1 shows ROI determination algorithms for some typical relationships;

[0020] Table 2 shows algorithms to detect square or rectangular regions;

[0021] Table 3 shows feature enhancement options for algorithms for square or rectangular region;

[0022] Table 4 shows detection options for algorithms for square or rectangular region;

[0023] Table 5 shows pre-processing for algorithms to detect square frame or rectangular frames;

[0024] Table 6 shows feature enhancement for algorithms to detect square frames or rectangular frames;

[0025] Table 7 shows detection for algorithms to detect square frames or rectangular frames;

[0026] Table 8 shows pre-processing options for algorithms to detect circular region;

[0027] Table 9 shows feature enhancement options for algorithms to detect circular region;

[0028] Table 10 shows detection options for algorithms to detect circular region;

[0029] Table 11 shows pre-processing options for algorithms to detect ring;

[0030] Table 12 shows feature enhancement options for algorithms to detect ring;

[0031] Table 13shows detection options for algorithms to detect ring;

[0032] Table 14 shows pre-processing options for algorithms to detect arc region;

[0033] Table 15 shows feature enhancement options for algorithms to detect arc region;

[0034] Table 16 shows detection options for algorithms to detect arc region;

[0035] Table 17 shows detection options for algorithms to detect arc;

[0036] Table 18 shows feature enhancement options for algorithms to detect arc;

[0037] Table 19 shows detection options for algorithms to detect arc;

[0038] Table 20 shows pre-processing options for algorithms to detect arbitrary shaped region;

[0039] Table 21 shows feature enhancement options for algorithms to detect arbitrary shaped region;

[0040] Table 22 shows detection options for algorithms to detect arbitrary shaped region;

[0041] Table 23 shows pre-processing options for algorithms to detect arbitrary shaped boundary frame;

[0042] Table 24 shows feature enhancement options for algorithms to detect arbitrary shaped boundary frame;

[0043] Table 25 shows detection options for algorithms to detect arbitrary shaped boundary frame.

DETAILED DESCRIPTION OF THE INVENTION

[0044] 1. Concept

[0045] A multilevel Chain-And-Tree (CAT) model for image based decision was disclosed in U.S. patent application Ser. No. 10/104,669 entitled, “A Multilevel Chain-And-Tree Model for Image-based Decisions” by Shih-Jong J. Lee et. al. filed on Mar. 22, 2002, which is incorporated in its entirety herein. It provides a framework to facilitate highly effective analysis and measurement for advanced image based decision systems. The present invention provides a method that automatically or semi-automatically creates the processing sequence for image based decision applications based on the CAT model framework.

[0046] II. Overview

[0047] In one embodiment, the application scenario of this invention is shown in FIG. 1. As shown in FIG. 1, a reference CAT model 110 is created 108using inspection specification and/or learning image 100 and/or application knowledge 114 during the learning phase 101. The inspection specification 100 specifies the desired features for inspection and/or measurements. It could be specified by a user or automatically learned by the system after showing normal and defected images. The application knowledge could be a typical image of the subject, a Computer Aided Design (CAD) model of the subject or entered by the user through a user interface. The reference CAT model 110 consists of the basic structure and attribute values of an ideal subject and its tolerance ranges. A processing CAT model 104 is created 102 from the reference CAT model 108 and/or the inspection specification 100 and/or learning image 100 in the learning phase. The processing CAT model 104 stores the processing algorithm and sequence that will be applied to a new image 105 to create the result CAT model 106 in the application phase.

[0048] A result CAT model 106 is used to represent the measurement results of a new image 105. The reference CAT model 110 and result CAT model 106 are compared 112 to determine the pass/fail status of the new image and/or measurement values of image features of interest 116. In one embodiment of the invention, the comparison is a simple check of the measurement results stored in the result CAT model 106 against the tolerance ranges stored in the reference CAT model 110. A new image 105 fails the inspection if any of its measurements 116 is outside the tolerance range. Otherwise, it passes the inspection.

[0049] The processing CAT model 104 includes detection methods associated with the CAT component type. For example, caliper edge detection can be associated with a CAT component in a processing CAT model for the detection of a regular shape CAT component such as ring, circle, arc, square, rectangle, and line, etc. A template matching method can be associated with a CAT component in a processing CAT model for the detection of an arbitrary shape CAT component.

[0050] In addition, measurement methods are associated with CAT component features. For example, rotation angle, scale, area, shape, density measurement functions can be defined in a processing CAT model to measure the desired features for the result CAT model. The processing CAT model provides a framework to define and execute an image-based decision algorithm. This overcomes the prior-art difficulty of inconsistent ad-hoc algorithm generation. It also provides a direct link between the algorithm representation, the subject, and the result model to facilitate easy comprehension, update, change, and debugging. This invention provides a method for automatic or semi-automatic processing procedure/algorithm generation and algorithm learning under the CAT framework. That is, it provides methods to generate a processing CAT model.

[0051] III. Multi-Level CAT Model

[0052] A multi-level CAT model represents a subject by components and their relations at multiple levels. The relations between components are represented as a chain or a tree link. In one embodiment of the invention, the CAT model is illustrated in FIG. 2.

[0053] III.1 CAT Model Elements

[0054] A CAT model contains at least one CAT chain or one CAT tree. CAT chains and CAT trees consists of CAT nodes.

[0055] A. CAT Node

[0056] A CAT node is the basic unit of a CAT model. In one embodiment of the invention, there are four different types of CAT nodes: (1) chain root node 200, (2) chain node 202, (3) tree root node 204, and (4) tree node 206. A CAT node is a Join node 210, if it connects to a chain root node 200 or a tree root node 204 at lower level. A CAT node is a Tail node 208, if it is the last chain node or a terminal node of a tree in a given level. All CAT nodes, except the model root node 212, have one parent node. Each chain node has one child node at the same level, if it is not a tail node. Each tree node has one or more child nodes at the same level, if it is not a tail node. Each CAT node has a “depth” attribute that represents the distance to its chain/tree root node. A root node has the depth of 0, and its children have the depth of 1, and so on.

[0057] B. CAT Chain and CAT Tree

[0058] A CAT chain contains at least one chain root node plus one or more chain nodes. A CAT tree contains at least one tree root node plus one or more tree nodes. Each CAT chain/tree has a “level” attribute that is the number of root nodes it has to pass through to reach the CAT model root node.

[0059] C. CAT Model

[0060] A CAT model contains at least one CAT chain or one CAT tree. Each CAT model has one model root node 212 that is either a chain root node 200 or a tree root node 204.

[0061] III.2 CAT Component Elements

[0062] As described above, a CAT model contains one or more CAT nodes. Each CAT node contains one CAT component that is a part of the object described by the CAT model. In one embodiment of the invention, a CAT component can be specified by its type and attributes as well as its relations.

[0063] III.2.1 CAT Component Type

[0064] CAT components include simple geometric entities such as ring, circle, arc, square, rectangle, line, text, character, arbitrary shape, or a group of components/CAT.

[0065] Those skilled in the art should recognize that other component types could be defined including three-dimensional entities or parts specific to an application such as different types of IC-chips or screws, etc.

[0066] III.2.2 CAT Component Features

[0067] Each component has associated attributes or features such as locations (centroid, bounding box, etc.), rotation angle, scale, 1-dimensional measurements (width, length, radius, etc.), 2-dimensional measurements (area, etc.), boundary points (link list, boundary point statistics), shape features (compactness, eccentricity, moments, Fourier descriptors, etc.), intensity features (mean density, standard deviation density, integrated density, etc.), texture features (co-occurrence statistics, run-length statistics, fractal dimension statistics, etc.), structure features for children components (number of components, average distance between components, etc.), text content or character value (for text or character components).

[0068] A reference CAT model represents an ideal subject and its tolerances. Therefore, its feature attributes include not only the nominal values but also the tolerance ranges. Furthermore, it may store attributes such as template images or valid character sets (for a character component) to facilitate a pass/fail decision. A result CAT model represents an instance of the subject that is measured from the input image. Its feature attributes store the measured values. Additional attributes such as presence/absence of the component can also be included.

[0069] Those skilled in the art should recognize that other component features can be defined including color or three-dimensional features or time based features or features specific to an application.

[0070] III.2.3 CAT Component Relations

[0071] The relations between CAT nodes (such as CAT chains or CAT trees) can be represented by their links. The relations between CAT nodes are associated with the links. Since a CAT node can have only one parent yet it could have multiple children, the relations between nodes can be conveniently specified in the link between a CAT node to its parent node. In one embodiment of the invention, the relations include without limitation:

[0072] Distance: The distance between two components

[0073] Adjacency: such as touching, overlapping, etc.

[0074] InsideOutside: such as inside, outside, etc.

[0075] Parallelism

[0076] Perpendicularity

[0077] Concentricity

[0078] BetweenAngle: The angle between component major axes of a child node and its parent node.

[0079] AreaRatio: The ratio between component areas of the child node and its parent node.

[0080] LengthRatio: The ratio between component major axis lengths of the child node and its parent node.

[0081] Those skilled in the art should recognize that other component relations could also be defined including color, three-dimensional relations, time relations, or parts specific relations.

[0082] IV. Processing CAT Model Generation

[0083] The processing CAT model stores the processing sequence to generate the elements of each CAT component of the result CAT model. A node in a processing CAT model stores detection functions for its CAT component, relation extraction functions to extract its CAT component relational features, detection optimization functions to optimize detection results using CAT component relations and results from related nodes. There are also measurement functions to extract its CAT Component features.

[0084]FIG. 3 shows the processing CAT model learning and application processing flow. It shows the relations between the processing CAT model 104 and reference CAT model 110 in the learning phase 101 and the processing flow between the processing CAT model and result CAT model in the application phase 103. In the processing CAT model learning phase 101, the detection function for a CAT node 308 is created by a detection learning 300 method of the invention. This method uses the CAT component type 316 and CAT component relations 318 from the reference CAT model 110 as well as the learning image 338 to create the detection sequence for the CAT node 308. The resulting detection function 308 is stored in the processing CAT model 104. A relation extraction learning method 304 of this invention uses the CAT component relations 318 from the reference CAT model 110 and the learning image 338 to create a relation extraction sequence 312 for the CAT node. The resulting relation extraction function 312 is stored in the processing CAT model 104. A detection optimization learning method 302 of this invention uses the CAT component relations 318 from the reference CAT model 110 and the learning image 338 to create the detection optimization processing sequence 310 for the CAT node. The resulting detection optimization function 310 is stored in the processing CAT model 104. A measurement learning method 306 of this invention uses the CAT component features 320 from the reference CAT model 110 and the learning image 338 to create the measurement sequence 314 for the CAT node. The resulting measurement function is stored in the processing CAT model 104.

[0085] In the application phase 103, the detection function 308 for a given CAT node is applied to the new image 340 to initially detect the component associated with the node 322. The relation extraction function 312 processes the detected CAT component 322 and the new image 340 to extract CAT component relational features 324. The extracted CAT component relational features 324 and detected CAT component 322 of the current node 341 and the detected CAT component 328 and Extracted CAT component relational features 330 of the related nodes 327 are processed by the detection optimization function 310 to refine the detection results using the relations between the nodes. The detection optimization process 310 is performed by a two-pass dynamic programming like method as described in U.S. patent application Ser. No. 10/178,166 entitled” A Method for Decision Optimization in Image-based Decision Systems” by Shih-Jong J. Lee, et. al. filed Jun. 21, 2002, which in incorporated in its entirety herein. The measurement function 314 processes the detected CAT component 322 and new image 340 to extract CAT component features 326.

[0086] A CAT model can be visited sequentially in a forward or backward fashion. The forward direction starts from the root node and traces down the chains and/or trees in a depth first fashion. The backward direction is merely a reversal of the forward direction from tail nodes back to the root node. In one embodiment of the invention, the processing CAT model generation process is performed for each node of a CAT model sequentially in a forward fashion starting from the root node of the CAT model.

[0087] Those skilled in the art should recognize that other starting node or method of sequential generation of processing CAT model nodes could be used. They are within the scope of this invention.

[0088] IV.1 Detection Learning

[0089] The detection learning module determines the processing sequence for detection of a CAT component. The detection processing sequence includes two major steps: (1) detection Region-Of-Interest (ROI) determination (2) object detection. The detection ROI determination process determines the ROI of a component, which is the region of the image where the component is most likely located. To save time and avoid false detection in the preferred embodiment of the invention, the object detection process operates only within the ROI.

[0090] IV.1.1 ROI Determination Learning

[0091] The ROI determination process relies on the spatial relationship between the component of the current node and the component of a previously detected node. If no relationship exists, the ROI will include all valid regions of the image.

[0092] Since a CAT node can have only one parent yet it could have multiple children, the relations between nodes are specified in the link between a CAT node and its parent node. In one embodiment of the invention, the parent node is detected first and the relation between the current node and its parent is used to derive the ROI determination algorithm. A database of algorithms is defined in the learning module. In one embodiment of the invention, the ROI determination algorithms for some typical relationships are defined in Table 1. Table 1 shows possible associated relations between two components. This is an illustrative list and is not exhaustive of the invention possibilities. In the example, two components could be circles having no overlap with known distance between centers, touching, overlapping, they could lie wholly inside or wholly outside of one another. The algorithms used to determine ROI in each case are associated in Table 1. An explanation of the symbology used in this and subsequent tables is included below:

[0093] d: distance

[0094] c_p: center of the parent component

[0095] Circle (d, c_p): a circle of radius d and center c_p

[0096] ⊕: morphological dilation operation

[0097] R_n: expected bounding box region of the current component n

[0098] m: the maximum distance from a boundary to the center of the current component n

[0099] D_m: a disk of radius m

[0100] E: an error rectangle with x and y length corresponding to the expected detection error in x and y

[0101] B_p: the boundary where the two components touching each other

[0102] O_p: the region(s) where the two components overlapping each other

[0103] C_p: the detected parent component region

[0104] I: the valid image region

[0105] Those having ordinary skill in the art should recognize that other relations and algorithms for other relations could be defined. Furthermore, other methods can be used to construct the algorithm.

[0106] The ROI determination learning process is depicted in FIG. 4. The ROI determination learning process determines processing parameters 400 such as R_n, m, Dm and E values (processing parameters 402) using the reference CAT model input 110. It then extracts the relations between a component and its parent component as well as relevant information of the parent component 404 from the reference CAT model 110. Based on the determined and input values and the relations, an algorithm procedure 410 can be learned by table lookup 406 using algorithm database 408. When multiple relationships are defined, multiple procedures are applicable. In this case, all applicable algorithms are included and the intersection 412 of the ROIs from all applicable algorithms is the combined algorithm 414.

[0107] IV.1.2 Object Detection Learning

[0108] The object detection learning processing flow is shown in FIG. 5. The object detection learning module includes a detection algorithm database 500 that stores multiple detection algorithms for incorporation into the detection sequence of a CAT node. For a given CAT node, the reference CAT model 110 specifies its expected CAT component types, expected CAT component features and expected CAT component relations. Based on the expected information of the CAT component, candidate algorithms 502 are generated using the detection algorithm database 500. In one embodiment of the invention, simple algorithms are generated first followed by more sophisticated ones. The candidate algorithms 504 are evaluated by a candidate algorithm evaluation module 506. The module applies the candidate algorithm to the learning image(s) 510. The algorithm application results are compared with the information stored in the reference CAT model 110 to generate a score for the algorithm result. The algorithm scores are used to select the detection algorithm 508 for the current component.

[0109] IV.1.2.1 Detection Algorithm Database

[0110] The detection algorithm database stores algorithms that can be selected using expected CAT component attributes from the reference CAT model. In addition, learning support image processing may be performed to acquire algorithm selection relevant information that is not available directly in the reference CAT model. There are general algorithms that should be applied to the whole image before the component specific processing is applied such as image calibration and contrast normalization. Image calibration method uses calibration image such as grid patterns with known characteristics to normalize out the geometric distortion of the imaging system. A contrast normalization method adjusts the gain and offset of the image dynamic range to a pre-defined standard.

[0111] The component specific algorithms are specific to each component of the CAT model and are learned using the method of this invention. In one embodiment of the invention, the algorithm database is organized by component type since different algorithms may be required to optimize for detection of different component types.

[0112] Given a component type, there are algorithms using different approaches that may be equally applicable or with different effectiveness and limitations. For example, the detection of an object can be accomplished by a region-based algorithm or boundary-based algorithm or a combination of both. Furthermore, specific algorithms optimized for different component conditions such as dark vs. bright objects, textured vs. uniform objects are included for the selection. A typical set of algorithms for a set of typical component types are listed in the following sections.

[0113] IV.1.2.1.1 Square or Rectangular Region

[0114] The algorithms to detect square or rectangular regions include many choices. In one embodiment of the invention, the algorithm includes pre-processing, feature enhancement and detection steps.

[0115] A. Pre-Processing

[0116] The pre-processing step performs image noise removal. This results in a noise removed image for the feature enhancement step. Table 2 shows example pre-processing operations that can be selected for different component conditions. An explanation of the symbology used in this and subsequent tables is included below:

[0117] I is the input image for the processing type;

[0118] I_out is the output image for the processing type;

[0119] Median filter(I) is a median filtering of I by a small size kernel such as 3 by 3;

[0120] Automatic filtering performs automatic filtering for feature enhancement as described in Lee, S, Oh, S, Huang, C “Structure-guided Automatic Leaning for Image Feature Enhancement”, U.S. patent application Ser. No. 09/815,466, filed May 23, 2001;

[0121] Direction 1: the first side direction of the rectangular region;

[0122] Direction 2: the second side direction of the rectangular region. It is orthogonal to Direction 1;

[0123] E1_m is an elongated structuring element [Lee, 2000] of length m that is orthogonal to Direction 1;

[0124] E2_m is an elongated structuring element [Lee, 2000] of length m that is orthogonal to Direction 2;

[0125] L1 is a sufficiently large length such as half of the rectangle side length in Direction 1;

[0126] L2 is a sufficiently large length such as half of the rectangle side length in Direction 2;

[0127] Θ is the grayscale morphological erosion operation [Sternberg, 1986];

[0128] ⊕ is the grayscale morphological dilation operation;

[0129] ∘ is the grayscale morphological opening operation [Sternberg, 1986];

[0130] • is the grayscale morphological closing operation;

[0131] MAX(I1, I2) performs a maximum function between each pixel of images I1 and I2;

[0132] “No Operation” means skip the pre-processing step;

[0133] [Lee, 2000] is Lee, S, Oh, S, Huang, C “Structure-guided Image Processing and Image Feature Enhancement”, U.S. patent application Ser. No. 09/738,846, filed Dec. 15, 2000;

[0134] [Sternberg, 1986] is Sternberg, SR, “Gray-scale morphology,” Comput. Vision, Graphics Image Processing, vol. 35:333-355, 1986.

[0135] B. Feature Enhancement

[0136] The feature enhancement step enhances the feature of interest. This results in a feature enhanced image for the detection stage. Table 3 shows example feature enhancements suitable for algorithms used to detect square or rectangular regions applicable for particular associated component conditions.

[0137] C. Detection

[0138] The detection step performs object detection that outputs the detected object mask or the location, size and orientation of the component with respect to a template. Table 4 shows example detection stage processing types that can be associated with square or rectangular region detection.

[0139] IV.1.2.1.2 Square Frame or Rectangular Frame

[0140] The algorithms to detect square frame or rectangular frame include many choices. In one embodiment of the invention, the algorithm includes pre-processing, feature enhancement and detection steps.

[0141] A. Pre-Processing

[0142] The pre-processing step performs image noise removal. This results in a noise-removed image for the feature enhancement step. Table 5 shows example processing types available for pre-processing for square frame or rectangular frame detection.

[0143] B. Feature Enhancement

[0144] The feature enhancement step enhances the feature of interest. This results in a feature enhanced image for the detection stage. Table 6 shows example processing types available for feature enhancement for square frame or rectangular frame detection.

[0145] C. Detection

[0146] The detection step performs object detection that outputs the detected object mask or the location, size and orientation of the component with respect to a template. Table 7 shows example processing types available for detection for square frame or rectangular frames.

[0147] IV.1.2.1.3 Circular Region

[0148] The algorithms to detect circular region include many choices. In one embodiment of the invention, the algorithm includes pre-processing, feature enhancement and detection steps.

[0149] A. Pre-Processing

[0150] The pre-processing step performs image noise removal. This results in a noise-removed image for the feature enhancement step. Table 8 shows example processing types available for pre-processing for circular region detection.

[0151] B. Feature Enhancement

[0152] The feature enhancement step enhances the feature of interest. This results in a feature enhanced image for the detection step. Table 9 shows example processing types available for feature enhancement for circular region detection.

[0153] C. Detection

[0154] The detection step performs object detection that outputs the detected object mask or the location, size and orientation of the component with respect to a template. Table 10 shows example processing types available for detection of circular regions.

[0155] IV.1.2.1.4 Ring

[0156] The algorithms to detect ring include many choices. In one embodiment of the invention, the algorithm includes pre-processing, feature enhancement and detection steps.

[0157] A. Pre-Processing

[0158] The pre-processing step performs image noise removal. This results in a noise-removed image for the feature enhancement step. Table 11 shows example processing types available for pre-processing for ring detection.

[0159] B. Feature Enhancement

[0160] The feature enhancement step enhances the feature of interest. This results in a feature enhanced image for the detection step. Table 12 shows example processing types available for feature enhancement for ring detection.

[0161] C. Detection

[0162] The detection step performs object detection that outputs the detected object mask or the location, size and orientation of the component with respect to a template. Table 13 shows example processing types available for detection of rings.

[0163] IV.1.2.1.5 Arc Region

[0164] The algorithms to detect arc region include many choices. In one embodiment of the invention, the algorithm includes pre-processing, feature enhancement and detection steps.

[0165] A. Pre-Processing

[0166] The pre-processing step performs image noise removal. This results in a noise removed image for the feature enhancement step. Table 14 shows example processing types available for pre-processing for arc region detection.

[0167] B. Feature Enhancement

[0168] The feature enhancement step enhances the feature of interest. This results in a feature enhanced image for the detection step. Table 15 shows example processing types available for feature enhancement for arc region detection.

[0169] C. Detection

[0170] The detection step performs object detection that outputs the detected object mask or the location, size and orientation of the component with respect to a template. Table 16 shows example processing types available for detection of arc regions.

[0171] IV.1.2.1.6 Arc

[0172] The algorithms to detect arc include many choices. In one embodiment of the invention, the algorithm includes pre-processing, feature enhancement and detection steps.

[0173] A. Pre-Processing

[0174] The pre-processing step performs image noise removal. This results in a noise-removed image for the feature enhancement step. Table 17 shows example processing types available for pre-processing for arc detection.

[0175] B. Feature Enhancement

[0176] The feature enhancement step enhances the feature of interest. This results in a feature enhanced image for the detection step. Table 18 shows example processing types available for feature enhancement for arc region detection.

[0177] C. Detection

[0178] The detection step performs object detection that outputs the detected object mask or the location, size and orientation of the component with respect to a template. Table 19 shows example processing types available for detection of arcs.

[0179] IV.1.2.1.7 Arbitrary Shape Region

[0180] The algorithms to detect arbitrary shape region include many choices. In one embodiment of the invention, the algorithm includes pre-processing, feature enhancement and detection steps.

[0181] A. Pre-Processing

[0182] The pre-processing step performs image noise removal. This results in a noise-removed image for the feature enhancement step. Table 20 shows example processing types available for pre-processing for arbitrary shape region detection.

[0183] B. Feature Enhancement

[0184] The feature enhancement step enhances the feature of interest. This results in a feature enhanced image for the detection step. Table 21 shows example processing types available for feature enhancement for arbitrary shape region detection.

[0185] C. Detection

[0186] The detection step performs object detection that outputs the detected object mask or the location, size and orientation of the component with respect to a template. Table 22 shows example processing types available for detection of arbitrary shape regions.

[0187] IV.1.2.1.8 Arbitrary Shape Boundary Frame

[0188] The algorithms to detect arbitrary shape boundary frame include many choices. In one embodiment of the invention, the algorithm includes pre-processing, feature enhancement and detection steps.

[0189] A. Pre-Processing

[0190] The pre-processing step performs image noise removal. This results in a noise-removed image for the feature enhancement step. Table 23 shows example processing types available for pre-processing for arbitrary shape boundary frame detection.

[0191] B. Feature Enhancement

[0192] The feature enhancement step enhances the feature of interest. This results in a feature enhanced image for the detection step. Table 24 shows example processing types available for feature enhancement for arbitrary shape boundary frame detection.

[0193] C. Detection

[0194] The detection step performs object detection that outputs the detected object mask or the location, size and orientation of the component with respect to a template. Table 25 shows example processing types available for detection of arbitrary shape boundary frames.

[0195] Those skilled in the art should recognize that the list of component types and associated algorithms are not exhausted. For example, the method disclosed in a patent application entitled “Robust method for automatic reading of skewed, rotated or partially obscured characters” U.S. patent application Ser. No. 09/775,954 can be used for the detection of text region and characters. It is expected that there are variations according to specific applications. The essence of the invention does not tie to specific algorithms included in the database. It broadly covers different component types and algorithms.

[0196] IV.1.2.2 Candidate Algorithm Generation

[0197] The candidate algorithm generation step 502 generates candidate algorithm 504 for scoring and selection. The candidate algorithm generation processing flow is shown in FIG. 6. It first determines candidate algorithm 606 by looking up the algorithm database 500 for the applicable algorithms based on the type of component 622, component features 620 and component relations 618 and other information stored in the reference CAT model. The algorithm database can be organized in a convenient way for efficient algorithm look up and selection. For example, the algorithm can be organized in a way that the fastest algorithm will be accessed first. In this case, the algorithm can be selected sequentially if a higher speed algorithm is desired over slower ones.

[0198] A learning support image processing step 602 is performed on a learning image 510 to determine additional information such as component conditions 604 (dark contrast, bright contrast, textural, etc.) that may be required to properly look up the detection algorithm database 500. In one embodiment of the invention, the structure-guided processing method disclosed in Lee, S, Oh, S, Huang, C “Structure-guided Image Processing and Image Feature Enhancement”, U.S. patent application Ser. No. 09/738,846, filed Dec. 15, 2000 can be used for component condition determination.

[0199] Once an algorithm is selected 610, its parameters are determined by an algorithm parameter determination step 612. Most of the processing parameters 616 can be directly determined from the component specification of the reference CAT model. For example, the size of morphological processing structuring elements are either constant or are functions of the size of the components. Some parameters such as threshold values or histogram bounds are determined by the learning support image processing step that processes the learning image such as performing a histogram of the component region to derive the threshold values or the histogram parameters for the algorithm. The learning support image processing step also extracts image templates (single or multi-resolutions) to be used by the algorithm candidate 504. The selected algorithm along with its parameters are the resulting algorithm candidate 504 that is the output of this module.

[0200] IV.1.2.3 Candidate Algorithm Evaluation

[0201] The candidate algorithms are evaluated by a candidate algorithm evaluation module 506 to select the appropriate detection algorithm for the component of interest. The processing flow of the candidate algorithm evaluation module 506 is shown in FIG. 7. The module applies the candidate algorithm 504 to the learning image(s) 510. The algorithm application results 706 are compared with the information stored in the reference CAT model 110 to generate an algorithm score 712 for the algorithm result. The algorithm scores are used by a detection algorithm selection step 714 to select the detection algorithm 508 for the current component.

[0202] In one embodiment of the invention, all candidate algorithms are applied and the one with the highest score is selected. In another embodiment of the invention, algorithms are sequentially applied from simplest to the most complicated. The first algorithm that has a score exceeding an algorithm score threshold is selected. In a third embodiment of the invention, processing time is considered in the detection algorithm selection process. Processing time can either be estimated and incorporated into the algorithm scores or the detection algorithm selection process could set an upper limit and exclude algorithms exceeding the limit.

[0203] The candidate algorithm scoring step 710 compares the detection algorithm results with the data in the reference CAT model 110 to generate a numerical score. In one embodiment of the invention, the score is generated from comparing the detected component mask with the reference mask stored in the reference CAT model 110. A simple score comparing of the image mask A with another image mask B can be calculated as

Mask_Score=1−Area(A .XOR. B)/Area(A .OR. B)

[0204] Where .XOR. is an exclusive OR operation; .OR. is an OR (Union) operation; Area(m) is a function that determines the area of the image mask m.

[0205] In another embodiment of the invention, the score is generated from comparing the detected component feature values with the reference feature values stored in the reference CAT model. A simple score comparing n feature values F₁-F_(n) between set A and set B can be calculated as follows: ${Feature\_ Score} = \frac{\sum\limits_{i = 1}^{n}\quad \left( {N_{Ai} - N_{Bi}} \right)^{2}}{n}$

[0206] Where N_(Ai) is the normalized feature F_(i) for set A and where N_(Bi) is the normalized feature F_(i) for set B. In one embodiment of the implementation, the normalization can be performed by $N_{i} = {\frac{F_{i} - \mu_{i}}{\sigma_{i}}.}$

[0207] Where μ_(i) is the mean of F_(i) and σ_(i) is the standard deviation of F_(i).

[0208] In a third embodiment of the invention, comparing the detected component mask and feature values with the reference mask and feature values generates the score. This can be accomplished by a weighted combination of the Mask_Score and Feature_Score to create a combined score. Such as:

Combined_score=α*Mask_Score+(1−α)*Feature_Score

[0209] where α is a weighting factor between 0 and 1. Those skilled in the art should recognize that other methods could be used for algorithm scoring. For example, the processing time or computing and memory resource requirements can be used as another algorithm scoring factor.

[0210] The invention has been described herein in considerable detail in order to comply with the Patent Statutes and to provide those skilled in the art with the information needed to apply the novel principles and to construct and use such specialized components as are required. However, it is to be understood that the inventions can be carried out by specifically different equipment and devices, and that various modifications, both as to the equipment details and operating procedures, can be accomplished without departing from the scope of the invention itself. TABLE 1 ROI determination algorithms for some typical relationships Relations Algorithm Procedure Distance between centers Circle(d, c_p) ⊕ R_n ⊕ E of two components Adjacency:touching B_p ⊕ R_n ⊕ D_m ⊕ E − B_p Adjacency:overlapping O_p ⊕ R_n ⊕ D_m ⊕ E Inside C_p ⊕ E Outside (I − C_p) ⊕ E

[0211] TABLE 2 Pre-processing Options for Algorithms to Detect Square or Rectangular Regions Component Conditions Contrast Processing Dark Bright reversal Types contrast contrast invariant Textural No Operation No No No No Operation Operation Operation Operation Noise removal I_out = I_out = I_out = I_out = 1 Median filter Median filter Median filter Median filter (I) (I) (I) (I) Noise removal I_out = I_out = I_out = I1 = I • 2 Automatic Automatic Automatic E1_L1 − I ∘ filtering for filtering for filtering (I) E1_L1 dark region bright region using box I2 = I • (I) using box (I) using box calipers in E2_L2 − I ∘ calipers in calipers in directions 1 E2_L2 Directions 1 Directions 1 and 2 I_3 = and 2 and 2 MAX(I1, I2) I_out = Automatic filtering (I3) using box calipers in Directions 1 and 2

[0212] TABLE 3 Feature Enhancement Options for Algorithms for Square or Rectangular Region Component Conditions Contrast Processing Dark Bright reversal Types contrast contrast invariant Textural No No No No No Operation Operation Operation Operation Operation Edge I1 = I ⊕ I1 = I − I Θ I1 = I ⊕ If “Noise enhancement E1_r − I E1_r E1_r − I Θ removal 2” I2 = I ⊕ I2 = I − I Θ E1_r is not applied, E2_r − I E2_r I2 = I ⊕ perform I_out = I_out = E2_r − I Θ I1 = I • MAX(I1, I2) MAX(I1, I2) E2_r E1_1 − I ∘ I_out = E1_1 MAX(I1, I2) I2 = I • E2_1 − I ∘ E2_1 I_3 = MAX(I1, I2) Else I_3 = I I1 = I_3 ⊕ E1_r − I_3 Θ E1_r I2 = I_3 ⊕ E2_r − I_3 Θ E2_r I_out = MAX(I1, I2) Caliper edge I_out = I_out = I_out = If “Noise detection differential differential differential removal 2” filter edge filter edge filter edge is not applied, detection detection detection perform using box using box using box I1 = I • calipers in calipers in calipers in E1_1 − I ∘ Directions 1 Directions 1 Directions 1 E1_1 and 2 and 2 and 2 I2 = I • E2_1 − I ∘ E2_1 I_3 = MAX(I1, I2) Else I_3 = I I_out = applied differential filter edge detection to I_3 using box calipers in Directions 1 and 2

[0213] TABLE 4 Detection Options for Algorithms for Square or Rectangular Region Processing Types Approach Processing Parameters No Operation NA NA Thresholding Fixed value Threshold value, Condition (>, >=, <, <=) Adaptive Histogram lower bound percentage, Histogram higher bound percentage Dynamic Structuring element size and shape Template matching Fixed template Template Rotation invariant Template, rotation range Scale invariant Template, scale factor Rotation and scale Template, rotation range, invariant scale factor

[0214] TABLE 5 Pre-processing for Algorithms to Detect Square Frame or Rectangular Frames Processing Contrast Types Dark contrast Bright contrast reversal invariant No Operation No Operation No Operation No Operation Noise removal I_out = Median I_out = Median I_out = Median 1 filter (I) filter (I) filter (I) Noise removal I_out = I_out = I_out = 2 Automatic Automatic Automatic line filtering for dark filtering for bright filtering (I) using line (I) using box line (I) using box box calipers in calipers in calipers in directions 1 and 2 Directions 1 and Directions 1 and 2 2

[0215] TABLE 6 Feature Enhancement for Algorithms to Detect Square Frames or Rectangular Frames Processing Contrast Types Dark contrast Bright contrast reversal invariant No Operation No Operation No Operation No Operation Line I1 = I • E1_r − I I1 = I − I ∘ E1_r I1 = I • E1_r − enhancement I2 = I • E2_r − I I2 = I − I ∘ E2_r I ∘ E1_r I_out = I_out = I2 = I • E2_r − MAX(I1, I2) MAX(I1, I2) I ∘ E2_r I_out = MAX(I1, I2) Caliper line I_out = bandpass I_out = bandpass I_out = bandpass detection filter line filter line filter line detection using detection using detection using box calipers in box calipers in box calipers in Directions 1 Directions 1 Directions 1 and 2 and 2 and 2

[0216] TABLE 7 Detection for Algorithms to Detect Square Frames or Rectangular Frames Processing Types Approach Processing Parameters No Operation NA NA Thresholding Fixed value Threshold value, Condition (>, >=, <, <=) Adaptive Histogram lower bound percentage, Histogram higher bound percentage Dynamic Structuring element size and shape Template matching Fixed template Template Rotation invariant Template, rotation range Scale invariant Template, scale factor Rotation and scale Template, rotation range, invariant scale factor

[0217] TABLE 8 Pre-processing Options for Algorithms to Detect Circular Region Component Conditions Contrast Processing Dark Bright reversal Types contrast contrast invariant Textural No Operation No No No No Operation Operation Operation Operation Noise removal I_out = I_out = I_out = I_out = 1 Median Median Median Median filter (I) filter (I) filter (I) filter (I) Noise removal I_out = I_out = I_out = I_3 = I • 2 Automatic Automatic Automatic D_m − I ∘ filtering for filtering for filtering (I) D_m dark region bright region using circle I_out = (I) using (I) using caliper Automatic circle caliper circle caliper centered in filtering (I3) centered in centered in expected using circle expected expected component caliper component component center centered in center center location expected location location component center location

[0218] TABLE 9 Feature Enhancement Options for Algorithms to Detect Circular Region Component Conditions Contrast Processing Dark Bright reversal Types contrast contrast invariant Textural No No No No No Operation Operation Operation Operation Operation Edge I_out = I ⊕ I_out = I − I_out = I ⊕ If “Noise enhancement D_r − I I Θ D_r D_r − I Θ removal 2” is D_r not applied, perform I_3 = I • D_m − I ∘ D_m Else I_3 = I I_out = I ⊕ D_r − I Θ D_r Caliper edge I_out = I_out = I_out = If “Noise detection differential differential differential removal 2” is filter edge filter edge filter edge not applied, detection detection detection perform using a circle using a circle using a circle I_3 = I • caliper caliper caliper D_m − I ∘ centered in centered in centered in D_m expected expected expected Else component component component I_3 = I center center center I_out = location location location applied differential filter edge detection to I_3 using a circle caliper centered in expected component center location

[0219] TABLE 10 Detection Options for Algorithms to Detect Circular Region Processing Types Approach Processing Parameters No Operation NA NA Thresholding Fixed value Threshold value, Condition (>, >=, <, <=) Adaptive Histogram lower bound percentage, Histogram higher bound percentage Dynamic Circular structuring element size Template matching Fixed template Template Scale invariant Template, scale factor

[0220] TABLE 11 Pre-processing Options for Algorithms to Detect Ring Processing Contrast Types Dark contrast Bright contrast reversal invariant No No Operation No Operation No Operation Operation Noise I_out = Median I_out = Median I_out = Median removal 1 filter (I) filter (I) filter (I) Noise I_Out = I_out = I_out = removal 2 Automatic Automatic filtering Automatic filtering filtering for dark for bright region (I) using circle region (I) using (I) using circle caliper centered in circle caliper caliper centered in expected component centered in expected component center location expected center location component center location

[0221] TABLE 12 Feature Enhancement Options for Algorithms to Detect Ring Processing Contrast Types Dark contrast Bright contrast reversal invariant No No Operation No Operation No Operation Operation Edge I_out = I • I_out = I − I ∘ I_out = I • D_r − enhancement D_r −I D_r I ∘ D_r Caliper edge I_out = bandpass I_out = bandpass I_out = bandpass detection filter edge filter edge filter edge detection detection using a detection using a using a circle caliper circle caliper circle caliper centered in expected centered in centered in component center expected expected location component center component center location location

[0222] TABLE 13 Detection Options for Algorithms to Detect Ring Processing Types Approach Processing Parameters No Operation NA NA Thresholding Fixed value Threshold value, Condition (>, >=, <, <=) Adaptive Histogram lower bound percentage, Histogram higher bound percentage Dynamic Circular structuring element size Template matching Fixed Template template Scale Template, scale factor invariant

[0223] TABLE 14 Pre-Processing Options for Algorithms to Detect Arc Region Component Conditions Contrast Processing Dark Bright reversal Types contrast contrast invariant Textural No No No No No Operation Operation Operation Operation Operation Noise I_out = I_out = I_out = I_out = removal 1 Median filter Median filter Median filter Median filter (I) (I) (I) (I) Noise I_out = I_out = I_out = I_3 = I • removal 2 Automatic Automatic Automatic D_m − I ∘ filtering for filtering for filtering (I) D_m dark region bright region using arc I_out = (I) using arc (I) using arc caliper Automatic caliper caliper centered in filtering (I3) centered in centered in expected using arc expected expected component caliper centered component component center in expected center center location component location location center location

[0224] TABLE 15 Feature Enhancement Options for Algorithms to Detect Arc Region Component Conditions Contrast Processing Dark Bright reversal Types contrast contrast invariant Textural No No No No No Operation Operation Operation Operation Operation Edge en- I_out = I ⊕ I_out = I − I_out = I ⊕ If “Noise hancement D_r − I I Θ D_r D_r − I Θ removal 2” is D_r not applied, perform I_3 = I • D_m − I ∘ D_m Else I_3 = I I_out = I ⊕ D_r − I Θ D_r Caliper I_out = I_out = I_out = If “Noise edge differential differential differential removal 2” is detection filter edge filter edge filter edge not applied, detection detection detection using perform using an arc using an arc an arc caliper I_3 = I • caliper caliper centered in D_m − I ∘ centered in centered in expected D_m expected expected component Else component component center location I_3 = I center center I_out = location location applied differential filter edge detection to I_3 using an arc caliper centered in expected component center location

[0225] TABLE 16 Detection Options for Algorithms to Detect Arc Region Processing Types Approach Processing Parameters No Operation NA NA Thresholding Fixed value Threshold value, Condition (>, >=, <, <=) Adaptive Histogram lower bound percentage, Histogram higher bound percentage Dynamic Circular structuring element size Template matching Fixed Template template Scale Template, scale factor invariant

[0226] TABLE 17 Detection Options for Algorithms to Detect Arc Processing Contrast Types Dark contrast Bright contrast reversal invariant No No Operation No Operation No Operation Operation Noise I_out = Median I_out = Median I_out = Median removal 1 filter (I) filter (I) filter (I) Noise I_out = I_out = I_out = removal 2 Automatic Automatic filtering Automatic filtering filtering for dark for bright region (I) using arc region (I) using (I) using arc caliper centered in arc caliper caliper centered in expected component centered in expected component center location expected center location component center location

[0227] TABLE 18 Feature Enhancement Options for Algorithms to Detect Arc Processing Contrast Types Dark contrast Bright contrast reversal invariant No No Operation No Operation No Operation Operation Edge I_out = I • I_out = I − I ∘ I_out = I • D_r − enhancement D_r − I D_r I ∘ D_r Caliper edge I_out = bandpass I_out = bandpass I_out = bandpass detection filter edge filter edge filter edge detection detection using an detection using using an arc caliper arc caliper an arc caliper centered in expected centered in centered in component center expected expected location component center component center location location

[0228] TABLE 19 Detection Options for Algorithms to Detect Arc Processing Types Approach Processing Parameters No Operation NA NA Thresholding Fixed value Threshold value, Condition (>, >=, <, <=) Adaptive Histogram lower bound percentage, Histogram higher bound percentage Dynamic Circular structuring element size Template matching Fixed Template template Scale Template, scale factor invariant

[0229] TABLE 20 Pre-processing Options for Algorithms to Detect Arbitrary Shaped Region Component Conditions Contrast Processing Dark Bright reversal Types contrast contrast invariant Textural No No No No No Operation Operation Operation Operation Operation Noise I_out = I_out = I_out = I_out = removal 1 Median filter Median filter Median filter Median filter (I) (I) (I) (I) Noise I_out = I_out = I_out = I_3 = I • removal 2 Automatic Automatic Automatic D_m − I ∘ filtering for filtering for filtering (I) D_m dark region bright region using I_out = (I) using (I) using arbitrary Automatic arbitrary arbitrary shape filtering (I3) shape shape caliper using arbitrary caliper caliper centered in shape caliper centered in centered in expected centered expected expected component in expected component component center component center center location center location location location

[0230] TABLE 21 Feature Enhancement Options for Algorithms to Detect Arbitrary Shaped Region Component Conditions Contrast Processing Dark Bright reversal Types contrast contrast invariant Textural No No No No No Operation Operation Operation Operation Operation Edge en- I_out = I ⊕ I_out = I − I_out = I ⊕ If “Noise hancement D_r − I I Θ D_r D_r −I Θ D_r removal 2” is not applied, perform I_3 = I • D_m − I ∘ D_m Else I_3 = I I_out = I ⊕ D_r − I Θ D_r Caliper I_out = I_out = I_out = If “Noise edge differential differential differential removal 2” is detection filter edge filter edge filter edge not applied, detection detection detection using perform using an using an an arbitrary I_3 = I • arbitrary arbitrary shape caliper D_m − I ∘ shape shape centered in D_m caliper caliper expected Else centered in centered in component I_3 = I expected expected center location I_out = component component applied center center differential location location filter edge detection to I_3 using an arbitrary shape caliper centered in expected component center location

[0231] TABLE 22 Detection Options for Algorithms to Detect Arbitrary Shaped Region Processing Types Approach Processing Parameters No Operation NA NA Thresholding Fixed value Threshold value, Condition (>, >=, <, <=) Adaptive Histogram lower bound percentage, Histogram higher bound percentage Dynamic Circular structuring element size Template matching Fixed Template template Scale Template, scale factor invariant

[0232] TABLE 23 Pre-processing Options for Algorithms to Detect Arbitrary Shaped Boundary Frame Processing Contrast Types Dark contrast Bright contrast reversal invariant No No Operation No Operation No Operation Operation Noise I_out = Median I_out = Median I_out = Median removal 1 filter (I) filter (I) filter (I) Noise I_out = I_out = I_out = removal 2 Automatic Automatic filtering Automatic filtering filtering for dark for bright region (I) using arbitrary region (I) using (I) using arbitrary shape caliper arbitrary shape shape caliper centered in caliper centered centered in expected component in expected expected component center location component center center location location

[0233] TABLE 24 Feature Enhancement Options for Algorithms to Detect Arbitrary Shaped Boundary Frame Processing Contrast Types Dark contrast Bright contrast reversal invariant No No Operation No Operation No Operation Operation Edge I_out = I • I_out = I − I ∘ I_out = I • D_r − enhancement D_r − I D_r I ∘ D_r Caliper edge I_out = bandpass I_out = bandpass I_out = bandpass detection filter edge filter edge filter edge detection detection using an detection using an using an arbitrary arbitrary shape arbitrary shape shape caliper caliper centered caliper centered centered in expected in expected in expected component center component center component center location location location

[0234] TABLE 25 Detection Options for Algorithms to Detect Arbitrary Shaped Boundary Frame Processing Types Approach Processing Parameters No Operation NA NA Thresholding Fixed value Threshold value, Condition (>, >=, <, <=) Adaptive Histogram lower bound percentage, Histogram higher bound percentage Dynamic Circular structuring element size Template matching Fixed Template template Scale Template, scale factor invariant 

What is claimed is:
 1. A processing CAT model generation method comprises the following steps: (a) inputting a reference CAT model; (b) inputting at least one learning image; (c) performing processing CAT model learning using the reference CAT model and the at least one learning image; (d) outputting a processing CAT model.
 2. The method of claim 1 wherein the processing CAT model learning step performs detection learning having a detection sequence output.
 3. The method of claim 1 wherein the processing CAT model learning step performs detection optimization learning having a detection optimization sequence output.
 4. The method of claim 1 wherein the processing CAT model learning step performs relation extraction learning having a relation extraction sequence output.
 5. The method of claim 1 wherein the processing CAT model learning step performs measurement learning having a measurement sequence output.
 6. A detection learning method comprises the following steps: (a) inputting a reference CAT model; (b) inputting at least one learning image; (c) performing ROI determination learning using the reference CAT model having an ROI determination process output; (d) performing object detection learning using the reference CAT model and the at least one learning image having a detection algorithm output.
 7. The method of claim 6 wherein the ROI determination learning step further comprises the following steps: (a) determining processing parameters using the reference CAT model to produce a processing parameters output; (b) extracting relations and parent component information from the reference CAT model; (c) inputting an algorithm database; (d) performing learning by table look-up using the algorithm database; (e) outputting at least one algorithm.
 8. The method of claim 7 including the step of combining algorithms by ROI intersection.
 9. The method of claim 6 wherein the object detection learning step further comprises the following steps: (a) inputting a detection algorithm database; (b) performing candidate algorithm generation using the detection algorithm database having an candidate algorithm output; (c) performing candidate algorithm evaluation using the candidate algorithm having a detection algorithm output.
 10. An object detection learning method comprises the following steps: (a) inputting a reference CAT model; (b) inputting at least one learning image; (c) inputting a detection algorithm database; (d) performing candidate algorithm generation using the detection algorithm database having an candidate algorithm output; (e) performing candidate algorithm evaluation using the candidate algorithm output having a detection algorithm output.
 11. The method of claim 10 wherein the detection algorithm database comprises at least one algorithm selected from the set consisting of pre-processing algorithms, feature enhancement algorithms and detection algorithms.
 12. The method of claim 10 wherein the candidate algorithm generation step further comprises the following steps: (a) performing learning support image processing using the at least one learning image having component condition and processing parameter output; (b) performing candidate algorithm lookup using the reference CAT model and the detection algorithm database having a selected algorithm output; (c) performing algorithm parameter determination using the selected algorithm and the processing parameter outputs having an algorithm candidate output.
 13. The method of claim 10 wherein the candidate algorithm evaluation step further comprises the following steps: (a) performing candidate algorithm application using the at least one learning image and the algorithm candidate output having an algorithm result output; (b) performing candidate algorithm scoring using the reference CAT model and the algorithm result output having an algorithm score output; (c) performing detection algorithm selection using the algorithm score output having a detection algorithm output.
 14. The method of claim 13 wherein the candidate algorithm scoring step uses the reference mask stored in the reference CAT model and the detected component mask in the algorithm result output to generate a mask score in the algorithm score output.
 15. The method of claim 13 wherein the candidate algorithm scoring step uses the component feature values stored in the reference CAT model and the detected component feature values in the algorithm result to generate at least one feature score in the algorithm score output.
 16. The method of claim 13 wherein the algorithm score output is a combined score. 